<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<title>SGF - Login</title>
</h:head>
<h:body>
	<p:growl id="msgGlobal1" showDetail="false" sticky="false" life="6000" />
	<center>
		<h:form>
			<br />
			<br />
			<br />
			<h:graphicImage value="/resources/imagens/logoSGF.png" width="20%"
				height="20%" />
			<br />

		</h:form>
		<h:form id="frmLogin" prependId="false">
			<h:panelGrid id="pnlLogin" columns="1">

				<p:inputText value="#{MBUsuario.usuario.nome}" required="true"
					requiredMessage="Campo usuário inválido" maxlength="50" />
				<p:password value="#{MBUsuario.usuario.senha}" required="true"
					requiredMessage="Campo senha inválido" maxlength="50" />



				<p:commandButton value="ENTRAR" style="width:235px;height:50px"
					update=":msgGlobal1 :frmLogin:pnlLogin"
					
					action="#{MBUsuario.autenticar}" />


			</h:panelGrid>
		</h:form>
	</center>

</h:body>
</html>